<!-- page create new topic -->

<?php $this->load->view('include/header'); ?>

<?php echo form_open('teacher/create'); ?>

<?php
	$name = array(
		'name' => 'name',
		'size' => '30'
	);
	echo form_label('Name: ','name');
	echo form_input($name).'<br>';
	
	$area = array(
		'name' => 'area',
		'size' => '30'
	);
	echo form_label('Research Area: ','area');
	echo form_input($area).'<br>';

 	$descript = array(
 			'name' => 'description',
			'rows' => '5',
			'cols' => '50'		
	);
	echo form_label('Description: ','description').'<br>';
	echo form_textarea($descript).'<br>';
	
	$type = array(
		'name' => 'type',
		'size' => '10'
	);
	echo form_label('Type: ','type');
	echo form_input($type).'<br>';
	
	$quantity = array(
		'name' => 'quantity',
		'size' => '10'
	);
	echo form_label('Quantity: ','quantity');
	echo form_input($quantity).'<br>';
	
	echo form_submit('submit','Create');
?> 

<p><?php echo validation_errors(); ?></p>

<?php $this->load->view('include/footer'); ?>